<template>
	<view>
		<view class="pipe" v-for="(item,index) in goodsList" :key="item" @click="goGoodsCon(item)">
			<view class="pipe-q" v-for="(items,index) in item.groundpic" :key="items" >
				<image :src="items" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	import { getFeaturePipeList } from '@/api/activity';
	export default {
		data() {
			return {
				goodsList:[]
			}
		},
		created() {
			this.gettesefun();
		},
		methods: {
			gettesefun() {
				getFeaturePipeList().then(res => {
					if (res.status == 200) {
						this.goodsList = res.data;
					}
				});
			},
			goGoodsCon(item) {
			  this.$yrouter.push({
			    path: "/pages/shop/GoodsLists/index",
			    query: {
			      id:item.id,
				  title:item.cateName
			    },
			  });
			},
		}
	}
</script>

<style lang="less" scoped>
.pipe{
	width: 94%;
	margin:24rpx auto;
	.pipe-q{
		height: 274rpx;
		margin-bottom: 24rpx;
		image{
			width: 100%;
			height: 100%;
		}
	}
}
</style>
